package com.jk.service;

import com.jk.entity.ClothEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Component
@FeignClient(value = "cloth-ElasticSearch")
public interface EsServcie {

    @RequestMapping(value = "/es/queryShop")
    List<ClothEntity> ellist(@RequestParam String name);

}
